Farmblocks-Button
A React component for displaying buttons and actionable icons.
Design Spec
Usage
const React = require("react");
const ReactDOM = require("react-dom");
const Button = require("@crave/farmblocks-button").default;
const { buttonTypes, buttonSizes } = require("@crave/farmblocks-button");
const root = document.createElement("div");
ReactDOM.render(
<Button
type={buttonTypes.NEUTRAL}
size={buttonSizes.MEDIUM}
text="Neutral Button"
onClick={() => {
console.log("button clicked");
}}
/>,
root
);
document.body.appendChild(root);
API
See it in the source
License
MIT